
def get_color(obj):
    if obj == -1:
        return (100, 100, 255)
    return ( 255 * ( obj & 1 ),
             255 * ( (obj >> 1) & 1), 
             255 * ( (obj >> 2) & 1), 100)

